FROM python:3.11.11
MAINTAINER whitley
WORKDIR /app
COPY requirements.txt .
RUN pip install --upgrade pip
RUN python3 -m pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
COPY . .
RUN python manage.py collectstatic --noinput
EXPOSE 8000
CMD ["python","manage.py","runserver","0.0.0.0:9000"]
